package homework.work2;

import java.util.Comparator;

public class MyComparator implements Comparator<Cat>{
    @Override
    public int compare(Cat o1, Cat o2) {
        return Double.compare(o1.price,o2.price);
    }
}
